package com.decheng.java8.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author shkstart 邮箱：shkstart@126.com
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee implements Comparable {

    private int id;
    private String name;
    private int age;
    private double salary;
    // true=上班 false=休息
    private boolean status;

    public Employee(int id) {
        this.id = id;
    }

    public Employee(int id, String name) {
        this.id = id;
        this.name = name;
    }

    @Override
    public int compareTo(Object o) {
        if (o instanceof Employee) {

        }
        return 0;
    }
}
